package com.iteaj.iot.test.modbus;

import com.iteaj.iot.AbstractProtocol;
import com.iteaj.iot.client.modbus.ModbusTcpClientComponent;
import com.iteaj.iot.config.ConnectProperties;

public class ModbusTestComponent extends ModbusTcpClientComponent<ModbusTestMessage> {

    public ModbusTestComponent(ConnectProperties config) {
        super(config);
    }

    @Override
    public AbstractProtocol getProtocol(ModbusTestMessage message) {
        return remove(message.getMessageId());
    }

    @Override
    public String getName() {
        return "ModbusTcp测试";
    }
}
